// http://110.42.184.111/api/room/room/getRoomList?pageNo=1&pageSize=6&cityCode=hz
import airbnb from '../db';

// Mock接口
export async function fetchElephant() {
  await airbnb.airbnbDB.openStore({
    elephant: {
      keyPath: 'id',
      indexs: ['nose', 'ear'],
    },
  });
  const result = await airbnb.airbnbDB.getList('elephant').then((res) => {
    return { code: '000000', message: '操作成功', result: res, success: true };
  });
  console.log('result---', result);
  return result;
}
